package com.xxwy.ddu.cms.authonrize.mapper;

import com.xxwy.ddu.cms.authonrize.entity.Access;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.xxwy.ddu.cms.authonrize.entity.MenuMain;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xxwy
 * @since 2018-09-05
 */
public interface AccessMapper extends BaseMapper<Access> {

    /**
     * 查找所有的url：即支持的url，优化的时候，考虑存放在session中
     * @param uname
     * @return
     */
    List<String> getUserUrls(String uname);

    List<Access> getAccessInfo(@Param(value="rId")int rId);

}
